#pragma once
#define Transform CManGrid::GetInstance()
class CManGrid
{
private:
	static CManGrid*pInstance;
	CManGrid(void);
public:
	static CManGrid *GetInstance();
	virtual ~CManGrid(void);
public:
	CString RegisterWindowClass (LPCTSTR lpszClassNamePrefix);

	CRect	TransformX_S(const CRect &rc,CSize sz,int nFreezeColumns);

	CRect	Transform1X_S(const CRect &rc,CSize sz,int nIndex,int nFreezeColumns);
	CPoint	Transform1X_S(const CPoint &pt,CSize sz,int nIndex,int nFreezeColumns);
	CPoint	Transform1S_X(const CPoint &pt,CSize sz,int nFreezelenght);

	CRect	Transform2X_S(const CRect &rc,CSize sz,int nIndex,int nFreezeColumns);
	CPoint	Transform2X_S(const CPoint &pt,CSize sz,int nIndex,int nFreezeColumns);
	CPoint	Transform2S_X(const CPoint &pt,CSize sz,int nFreezelenght);

};
